package com.zaixiandiancan.xia.service;

import com.zaixiandiancan.xia.entity.Goods;
import com.zaixiandiancan.xia.entity.Gtypes;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface GoodsService {

    List<Goods> searchGoods(Map<String, Object> g);
    
    List<Goods> searchGoodsByType(String type);

    boolean addGoods(Goods goods);

    List<Gtypes> searchTypes();

    boolean addTypes(Gtypes types);
}
